package code;

import gui.ImageUtils;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class Textures
{
	private Map<String, Image> textures;
	
	public Textures(){
		this.textures = new HashMap<String, Image>();
	}
	private void addTexture(String name,Image texture){
		textures.put(name, texture);
	}
	public Map<String, Image> getTextures()
	{
		return textures;
	}
	public static void main(String[] args)
	{
		Ground g = new Ground("");
		Player p = new Player("P");
		Textures t = new Textures();
		Image img = null, img2 = null;
		try{
			
			 img = ImageUtils.loadImage("resources/cell.png");
			 img2 = ImageUtils.loadImage("resources/player.png");
		}catch(IOException e){
			
		}
		t.addTexture(g.getClass().getName(),img );
		t.addTexture(p.getClass().getName(),img2 );
		System.out.println(t.getTextures().keySet());
	}
	
	
}
